package com.douziit.meilianoa.base.config.filter;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * Created by dev31 on 2018/8/23.
 */
@Configuration
public class WebConfig  implements WebMvcConfigurer {


    /**
     * 添加拦Interceptor截器
     *
     * @param registry
     */
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        // 注册参数拦截器
        registry.addInterceptor(new HeaderRequiredInterceptor());

    }

}
